
/**
 * Created with IntelliJ IDEA.
 * User: acer
 * Date: 13-1-24
 * Time: 上午11:36
 * To change this template use File | Settings | File Templates.
 */
class StaticResourcesTagLib {
    static namespace = "ljoj"
    def grailsApplication
    def staticResource = { attrs, body ->
        def dir = (attrs.dir) ? attrs.dir : ""
        def file = (attrs.file) ? attrs.file : ""
        def url="${grailsApplication.config.ljoj.staticresources.url}" +
                "/${dir}/${file}"
        out
    }
}
